from django.conf.urls.defaults import *
#from django.http import HttpResponse

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

class Resposta(object):
    status_code = 200
    cookies = {}
    headers = [('Content-type','text/plain')]
    def __init__(self, conteudo):
        self.content = [conteudo]
    def __getitem__(self, i):
        return self.content[i]
    def items(self):
        return self.headers

def hello(request):
    return Resposta('<h1>Oi</h1>')

urlpatterns = patterns('',
    # Example:
    # (r'^smoketest/', include('smoketest.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    (r'^$', hello),
)
